/*
 * Copyright (C) Pootle contributors.
 *
 * This file is a part of the Pootle project. It is distributed under the GPL3
 * or later license. See the LICENSE file for a copy of the license and the
 * AUTHORS file for copyright and authorship information.
 */


/*
 * TRANSLATE PAGE
 */

body.translate
{
    padding: 0;
}

body.translate #content
{
    margin: 1em 0;
}

body.translate #body
{
    padding-bottom: 0;
}

/* MAIN TOOLBAR */

textarea#view_unit
{
    display: none;
}

/* By default, show the unit navigation toolbar inside the main toolbar */
#toolbar
{
    position: absolute;
    right: 2em;
    z-index: 300; /* show above the main toolbar */

    top: -35px;
}

/* When browser size is 950px or less, show navigation toolbar below the main toolbar */
@media screen and (max-width: 950px)
{
    #toolbar
    {
        z-index: 100; /* show below the main toolbar, to hide the shadow top edge */

        background-color: #eee;
        border-color: #d9d9d9;
        border-width: medium 1px 1px;
        border-style: none solid solid;

        padding: 10px 8px 5px;
        top: -11px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        border-radius: 5px;
    }
}

#toolbar button
{
    position: relative;
    top: -1px;
}

html[dir="rtl"] #toolbar
{
    left: 1em;
    right: auto;
}

#toolbar > div
{
    display: inline-block;
    margin-right: 1em;
}

html[dir="rtl"] #toolbar > div
{
    margin-right: auto;
    margin-left: 1em;
}

#toolbar > div:last-child
{
    margin-right: 0;
}

html[dir="rtl"] #toolbar > div:last-child
{
    margin-right: auto;
    margin-left: 0;
}


/* Navigation buttons */

#prevnext #item-navigation
{
    margin: 0 0.5em;
    position: relative;
    top: 2px;
}

#prevnext #item-number
{
    margin: 0 -0.3em;
    padding: 0 0.3em;
    text-align: center;
    position: relative;
    border: 1px solid transparent;
    background: transparent;
    display: inline-block;
    max-width: 5em;
    white-space: nowrap;
    outline: 0;
}

#prevnext:hover #item-number,
#prevnext:focus #item-number
{
    background: #fff;
    border: 1px solid #d9d9d9;
}

#prevnext #items-count
{
    display: inline-block;
}


/* EDITOR - GENERAL */

/* for the translation content, use regular sans-serif to ensure the maximum
Unicode ranges is supported, and that they all look the same */
textarea.translation,
.timeline-entry,
.translation-text,
.suggestion-original,
.suggestion-translation,
#id_search
{
    font-family: 'Raw', sans-serif;
}

#editor
{
    position: relative;
}

.loader > div
{
    margin: 180px auto;
}

.editor-overlay
{
    background-color: rgba(255, 255, 255, 0.8);
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    text-align: center;
}

.editor-overlay > div.alert
{
    display: block;
    margin: 180px auto 0;
    width: 400px;
}

.editor-msg-btns
{
    margin-top: 1em;
}

.editor-msg-btns .btn
{
    margin: 0 0.5em;
}


/* TRANSLATE TABLE */

table.translate-table
{
    width: 100%;
    table-layout: fixed;
    margin-top: 0;
}

table.translate-table td
{
    vertical-align: middle;
}

th.translate-original,
th.translate-translation
{
    width: 50%;
}

tr.edit-row.with-ctx
{
    background-color: #dbe3e4;
}

.delimiter-row td
{
    padding: 0;
}

.delimiter-row .hd h2
{
    margin: 1em 25px 0.5em;
    font-size: 1.5em;
    border-bottom: 1px solid #ccc;
}

.delimiter-row:first-child .hd h2
{
    margin-top: 0;
}

/* Context */

tr.edit-ctx
{
    font-size: 82%;
}

tr.edit-ctx td
{
    text-align: center;
    color: #d9d9d9;
    padding: 0;
    overflow: hidden;
}

tr.edit-ctx a
{
    text-decoration: none;

    opacity: 0.5;
}

tr.edit-ctx a:hover
{
    text-decoration: none;

    opacity: 1;
}

tr.edit-ctx.before .edit-ctx-wrapper
{
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.2) inset;
    padding: 10px 0 20px;
    margin: 0 -20px -10px;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
}

tr.edit-ctx.after .edit-ctx-wrapper
{
    box-shadow: 0 -1px 10px rgba(0, 0, 0, 0.2) inset;
    padding: 20px 0 10px;
    margin: -10px -20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

tr.ctx-row,
tr.view-row
{
    font-size: 92%;
    cursor: pointer;
}

tr.edit-ctx,
tr.ctx-row
{
    background-color: #dbe3e4;
}

tr.ctx-row
{
    color: #889294;
}

tr.ctx-row:hover
{
    background-color: #ccdadb;
}

tr.view-row:hover
{
    background-color: #d9edf4;
}

.translation-text
{
    max-width: 100%;
    overflow: auto;
    font-size: 115%;
}

div.sources
{
    margin-top: 2em;
    margin-bottom: -0.5em;
}


div.sources .translation-text
{
    padding: 0.1em 0.4em;
    margin-top: 0.2em;
}

.translation-text-headers
{
    color: #999;
    font-size: 85%;
    position: relative;
    border-bottom: 1px dotted #d9d9d9;
    padding-top: 0.5em;
}


/* TRANSLATION UNIT LAYOUT */

div.translate-container
{
    position: relative;
    margin: -5px 5px;
    padding: 1em 0;
    border: 1px solid rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    background-color: #f1f7f8;
    overflow: hidden;
    clear: both;
}


div.translate-container.error
{
    background-color: blue;
}

div.translate-container.error
{
    background-color: #fdd;
}

div.unit-path
{
    background: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    width: 100%;
    padding: 5px 20px;
    color: rgba(255, 255, 255, 0.4);
    box-sizing: border-box;
}

div.unit-path li
{
    display: inline-block;
    margin-right: 0.3em;
}

html[dir="rtl"] div.unit-path li
{
    margin-right: auto;
    margin-left: 0.3em;
}

div.unit-path li::after
{
    content: '→';
}

html[dir="rtl"] div.unit-path li::after
{
    content: '←';
}

div.unit-path li:last-child::after
{
    content: '';
}

html[dir="rtl"] div.unit-path li:last-child::after
{
    content: '';
}

div.unit-path li span.content-wrapper
{
    display: inline-block;
    margin-right: 0.5em;
    color: #fff;
}

html[dir="rtl"] div.unit-path li span.content-wrapper
{
    margin-right: auto;
    margin-left: 0.5em;
}

div.unit-path li a
{
    color: #cff;
    opacity: 0.8;
}

div.translate-left,
div.translate-right
{
    margin-top: 2em;
}

div.translate-left
{
    display: inline-block;
    width: 24.5%;
}

div.translate-middle
{
    display: inline-block;
    vertical-align: top;
    width: 50%;
    margin: 1em auto 0.5em;
    position: relative;
}

div.translate-right
{
    float: right;
    width: 24.5%;
}

/* ORIGINAL */

div.source-language
{
    margin-bottom: 1em;
}

div.language-name
{
    border-top: 1px dotted #d9d9d9;
    border-left: 1px dotted #d9d9d9;
    border-right: 1px dotted #d9d9d9;
    border-bottom: 1px solid #f1f7f8;
    border-radius: 5px 5px 0 0;

    padding: 1px 5px 0;
    display: inline-block;
    position: absolute;
    bottom: -1px;
}

div.translate-container.error div.language-name
{
    border-bottom: 1px solid #fdd;
}

.translate-focus div.translate-original
{
    color: #130f30;
}

div.source-language.alternative
{
    color: #777;
    margin-bottom: 2em;
}

table .view-row td
{
    padding: 0;
    width: 50%;
    vertical-align: top;
}

table .translate-view.translate-original,
table .translate-view.translate-translation
{
    padding: 5px;
}

table .translate-view.translate-original
{
    padding-left: 25px;
}

table .translate-view.translate-translation
{
    padding-right: 25px;
}

html[dir="rtl"] table .translate-view.translate-original
{
    padding-left: auto;
    padding-right: 25px;
}

html[dir="rtl"] table .translate-view.translate-translation
{
    padding-right: auto;
    padding-left: 25px;
}

/* COMMENTS */

.comments
{
    clear: both;
    color: #666;
}

.comments p
{
    display: inline;
    font-size: 85%;
    line-height: 120%;
    word-break: break-word;
}

/* Force-wrap URLs */
.comments.sidebar a
{
    white-space: normal;
}

.comments .developer-comments
{
    display: inline;
}

.developer-comments + .developer-images
{
    margin-top: 1em;
}

.developer-images img
{
    width: 29%;
    height: auto;
    margin: 2px;
    vertical-align: top;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.developer-images a:active,
.developer-images a:focus
{
    outline: none;
    opacity: 1;
}

.developer-images a:hover img
{
    box-shadow: 0 0 7px rgba(0, 0, 0, 0.7);
}

.developer-images a:active img,
.developer-images a:focus img
{
    outline: 2px solid Highlight;
    box-shadow: 0 0 10px rgba(0, 0, 0, 1);
}

.translate-priority,
.translate-locations,
.translate-context-value
{
    font-size: 90%;
    display: inline;
    word-wrap: break-word;
}

.translate-context-value
{
    font-weight: bold;
}

#comment-form textarea
{
    vertical-align: top;
    padding: 0;
    min-height: 1em;
    width: 100%;
    color: #666;
    font-size: 90%;
    line-height: 1.2em;
    margin-bottom: 5px;
}

/* TODO: review this */
.terminology div.translator-comments
{
    background-color: #eaf0f4;
    border: 1px solid #d2e1ed;
    overflow: auto;
    padding: 5px;
}


/* TRANSLATION */

td.translate-focus
{
    vertical-align: top;
}

td.translate-full div.translate-original
{
    width: 100%;
    margin: 0.7em 0;
}

td.translate-full textarea.translation
{
    width: 100%;
    margin: 0;
    min-height: 2.7em;
}


/* TM and suggestions */

.sidebar
{
    padding: 0 30px 1em 20px;
}

html[dir="rtl"] .sidebar
{
    padding: 0 20px 1em 30px;
}

.sidetitle,
.unit-empty,
.unit-meta,
.extras-bar,
.extra-item-meta,
.extra-item-title
{
    color: #999;
    font-size: 85%;
}

.unit-empty
{
    font-style: italic;
}

.extras-bar
{
    float: left;
    text-align: left;
    max-width: 30%;
}

html[dir="rtl"] .extras-bar
{
    float: right;
    text-align: right;
}

.unit-meta
{
    position: absolute;
    right: 0;
    text-align: right;
}

html[dir="rtl"] .unit-meta
{
    right: auto;
    left: 0;
    text-align: left;
}

.extra-item-meta
{
    float: right;
    margin-bottom: 0.5em;
}

html[dir="rtl"] .extra-item-meta
{
    float: left;
}

#tm
{
    position: relative;
}

.tm-unit
{
    margin: 0 0.5em 0.5em 0;
    padding: 0.1em 0.5em;
    background-color: #ffc;
    border: 1px dotted #999;
    cursor: pointer;
    display: inline-block;
    font-size: 90%;
}

.tm-unit:hover
{
    background-color: #ff9;
}

.tm-original
{
    font-weight: bolder;
    padding-right: 0.3em;
}

#tm[dir="rtl"] .tm-original
{
    padding-right: auto;
    padding-left: 0.3em;
}

.tm-translation
{
    font-style: oblique;
}

.tm-translation[dir="rtl"]
{
    text-align: right;
}

/* EXTRAS: SUGGESTIONS, TM RESULTS, COMMENTS */

#suggestions,
#extras-container,
#timeline-results,
#tm-results,
#translator-comment
{
    clear: both;
    margin-top: 1em;
}

.extras-bar a
{
    cursor: pointer;
    display: inline-block;
    margin: 0 0.1em 0.4em 0;
    padding: 0.3em 0.5em;
    border-radius: 0.2em;
}

html[dir="rtl"] .extras-bar a
{
    margin-right: 0;
    margin-left: 10px;
}

.extras-bar a.selected
{
    background: rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.3) inset;
}

.extras-bar a i
{
    margin: 0 0.3em;
}

.extra-item-block
{
    clear: both;
    position: relative;

    background-color: #f1f7e4;
    border: 1px dotted #d9d9d9;
    color: #444;
}

.extra-item-block:last-child
{
    margin-bottom: 0;
}

a.comment-action
{
    float: right;
}

.suggestion-actions
{
    float: right;
    margin: 0.5em;
}

a.suggestion-action
{
    float: right;
    margin: 0 0 0 0.3em;
}

html[dir="rtl"] .comment-action,
html[dir="rtl"] .suggestion-actions
{
    float: left;
}

html[dir="rtl"] .suggestion-action
{
    float: left;
    margin: 0 0.3em 0 0;
}

.suggestion-wrapper
{
    display: flex;
}

.suggestion-wrapper > div
{
    flex: 1;
}

.translation-text,
.suggestion-original,
.suggestion-translation
{
    word-break: break-word;
    overflow-wrap: break-word;
}

.suggestion-translation
{
    unicode-bidi: embed;
}

.extra-item-block:hover .suggestion-action img
{
    opacity: 0.5;
}

.extra-item-block .suggestion-action img:hover
{
    opacity: 1;
}

#suggestions .extra-item-block.can-review
{
    cursor: pointer;
}

#suggestions .extra-item-block.suggestion-expanded
{
    cursor: inherit;
}

.extra-item-block .suggestion-collapse,
.extra-item-block.suggestion-expanded .suggestion-expand,
.extra-item-block.suggestion-expanded a.suggestion-action,
.extra-item-block.suggestion-expanded .suggestion-translation
{
    display: none;
}

.extra-item-block .suggestion-translation
{
    display: block;
}

.extra-item-block .suggestion-expand,
.extra-item-block.suggestion-expanded a.suggestion-action .suggestion-collapse,
.extra-item-block.suggestion-expanded a.suggestion-action.suggestion-toggle
{
    display: inline-block;
}

.extra-item-block.suggestion-expanded .extra-item-content
{
    display: none;
}

.extra-item-block .extra-item-content
{
    display: block;
}

.extra-item-block .suggestion-feedback .field-wrapper label
{
    color: #999;
    font-size: 85%;
}

.extra-item-block .suggestion-feedback .field-wrapper
{
    margin: 5px 5px 0 0;
}

.extra-item-block .suggestion-feedback .field-wrapper.suggestion-editor
{
    margin-right: 0;
}

.suggestion-feedback label
{
    margin-bottom: 3px;
}

.extra-item-block .suggestion-feedback .field-wrapper label,
.extra-item-block .suggestion-feedback .field-wrapper textarea
{
    display: block;
    width: 100%;
    max-width: 100%;
}

.extra-item-block .suggestion-feedback .field-wrapper textarea
{
    width: 100%;
    max-width: 100%;
}

.extra-item-block .suggestion-feedback .buttons button
{
    float: right;
    margin: 15px 0 5px 15px;
}

html[dir="rtl"] .extra-item-block .suggestion-feedback .buttons button
{
    float: left;
    margin: 15px 15px 5px 0;
}

.extra-item-block .suggestion-feedback .buttons button i
{
    margin: 1px 4px 0 -4px;
}

.extra-item-block .suggestion-feedback form
{
    margin: 20px 20px 10px;
}

.translate-full
{
    position: relative;
}

.translate-full .translate-lightbox
{
    background: rgba(0, 0, 0, 0.2);
    position: absolute;
    z-index: 2;
    margin: -5px;
    box-sizing: border-box;
    border-radius: 5px;
    left: 10px;
    right: 10px;
    top: 5px;
    bottom: 5px;
    display: none;
}

.translate-full.suggestion-expanded .translate-lightbox
{
    display: block;
}

#suggestions .extra-item-block.suggestion-expanded.can-review,
#suggestions .extra-item-block.suggestion-expanded.can-review:hover
{
    box-shadow: 0 0 6px #6daa00;
    background-color: #f1f7e4;
    z-index: 3;
}

.extra-item-block.suggestion-expanded .extra-item-meta
{
    margin-top: 0.2em;
}

#suggestions .extra-item-title
{
    margin-bottom: 0.2em;
}

.extra-item
{
    line-height: 140%;
    padding: 0.5em;
}

.extra-item-block:hover,
#suggestions .extra-item-block.can-review:hover
{
    background-color: #fff;
}

#suggestions .extra-item-block:hover
{
    background-color: #f1f7e4;
}

#translator-comment .extra-item-block
{
    background-color: rgba(255, 153, 0, 0.3);
}

#translator-comment .extra-item-block:hover
{
    background-color: rgba(255, 153, 0, 0.5);
}

.suggestion-original
{
    font-weight: bolder;
    color: #130f30;
    padding-right: 1em;
    float: left;
}

html[dir="rtl"] .suggestion-original
{
    padding-right: 0;
    padding-left: 1em;
    float: right;
}

.suggestion-feedback .comment
{
    background-color: #fff;
    overflow: hidden;
    border: 1px solid #d9d9d9;
    border-radius: 3px;
}

.editor-area-wrapper
{
    background-color: #fff;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.075) inset;
    overflow: hidden;
    border-right: 1px solid #d9d9d9;
    border-left: 1px solid #d9d9d9;
    border-top: 1px solid #d9d9d9;
}

.editor-area-wrapper:last-child
{
    border-bottom: 1px solid #d9d9d9;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    margin: 0 auto 0.1em;
}

.editor-area-wrapper:first-child
{
    border-top: 1px solid #d9d9d9;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

.plural-form-label
{
    color: #c896c8;
    font-size: 85%;
}

.sources .plural-form-label
{
    margin: 0.5em 0 0 0.3em;
}

#suggestions .plural-form-label,
tr.view-row .plural-form-label,
tr.ctx-row .plural-form-label
{
    margin-right: 5px;
    vertical-align: top;
}

#suggestions .plural-form-label,
#suggestions .suggestion-translation,
tr.view-row .plural-form-label,
tr.view-row .view-unit-value,
tr.ctx-row .plural-form-label,
tr.ctx-row .view-unit-value
{
    display: inline-block;
}

html[dir="rtl"] tr.view-row .plural-form-label
{
    margin-left: 5px;
}

.editor-area-wrapper .subheader
{
    background: #fafafa;
    color: #c896c8;
    font-size: 85%;
    padding: 0.2em;
}

.editor-area-wrapper.is-disabled,
.editor-area-wrapper.is-disabled textarea
{
    box-shadow: none;
    outline: none;
    background-color: #eee;
    color: #999;
}

.editor-area-wrapper.is-focused
{
    box-shadow: 0 0 2px #d9d9d9;
    outline: -webkit-focus-ring-color auto 5px;
}

.editor-area-wrapper textarea
{
    box-sizing: border-box;
    border: 0;
    margin: 0;
    padding: 0.3em;
}

.editor-area-wrapper textarea:focus
{
    outline: none;
}

#target-item-gravatar a
{
    opacity: 1;
}

.extra-item-gravatar,
#target-item-gravatar
{
    position: absolute;
    margin-top: 4px;
    margin-left: -30px;
}

html[dir="rtl"] .extra-item-gravatar,
html[dir="rtl"] #target-item-gravatar
{
    margin-left: auto;
    margin-right: -30px;
}

.extra-item-content,
#target-item-content
{
    margin-bottom: -1px;
    width: 100%;
}

.extra-item-comment
{
    unicode-bidi: embed;
}

.extra-item .tm-context
{
    font-size: 85%;
    margin-top: 0.6em;
    color: rgba(150, 140, 0, 0.8);
    font-style: italic;
}

.timeline-extra
{
    position: absolute;
    top: 0;
    left: 100%;
    font-size: 0.9em;
    padding: 2px;
}

html[dir="rtl"] .timeline-extra
{
    left: auto;
    right: 100%;
}

.timeline-entry .description
{
    font-size: 85%;
    color: #999;
}

.timeline-entry .description .comment
{
    color: #444;
}

.timeline-entry .state-change
{
    font-size: 85%;
}

.timeline-field-body
{
    unicode-bidi: embed;
}

.timeline-arrow::before
{
    content: "→";
}

html[dir="rtl"] .timeline-arrow::before
{
    content: "←";
}

.timeline-entry .sidetitle
{
    float: left;
    margin-right: 5px;
}

html[dir="rtl"] .timeline-entry .sidetitle
{
    float: right;
    margin-left: 5px;
}

#editor-comment.hide
{
    display: none;
}

#editor-comment
{
    font-size: 115%;
    display: inline-block;
    white-space: nowrap;
    width: 100%;
    margin-top: 1em;
}

html[dir="rtl"] #editor-comment
{
    float: right;
    text-align: right;
}

#editor-comment form > *
{
    float: left;
}

html[dir="rtl"] #editor-comment form > *
{
    float: right;
}

#editor-comment textarea
{
    margin-right: 1em;
    max-height: 300px;
    max-width: 80%;
}

html[dir="rtl"] #editor-comment textarea
{
    margin-right: 0;
    margin-left: 1em;
}

/* CHECKS */

.unit-checks
{
    clear: both;
}

ul.checks
{
    display: inline;
    font-size: 85%;
}

.checks .toggle-check
{
    display: inline-block;
}

div.check a
{
    cursor: help;
}

.checkinfo
{
    vertical-align: top;
    margin-top: 3px;
}

#translate-checks-block
{
    position: absolute;
    left: 100%;
    margin: 14px 10px 0 20px;
    width: 46%;
}

html[dir="rtl"] #translate-checks-block
{
    left: auto;
    right: 100%;
    margin: 14px 20px 0 10px;
}

#translate-checks-block .sidetitle
{
    color: rgba(0, 0, 0, 0.75);
    float: left;
    display: inline-block;
    margin: 0.1em 1em 0 0;
}

html[dir="rtl"] #translate-checks-block .sidetitle
{
    float: right;
    margin: 0.1em 0 0 1em;
}

li.check
{
    display: inline-block;
    margin: -0.15em 1em 0.5em -0.5em;
    padding: 0.1em 0.5em;
    border-radius: 4px;
}

html[dir="rtl"] li.check
{
    margin: -0.15em -0.5em 0.5em 1em;
    padding: 0.1em 0.5em;
}

.check-warning
{
    line-height: 1.5;
}

#translate-checks-block.blink li.check
{
    background-color: #900;
}

#translate-checks-block.blink .checks a
{
    color: #fff;
}

li.check:hover
{
    background-color: #fff;
}

li.check > a
{
    cursor: help;
}

li.check-warning.false-positive > a,
li.check.false-positive > a
{
    color: rgba(0, 0, 0, 0.5);
}

#translate-checks-block i
{
    cursor: pointer;
    vertical-align: middle;
}

.mute-check,
.unmute-check
{
    display: none;
}

.check .mute-check,
.check.false-positive .unmute-check,
.check-warning:hover .mute-check,
.check-warning.false-positive:hover .unmute-check
{
    display: inline-block;
}

.false-positive .mute-check,
.check-warning:hover .unmute-check,
.check-warning.false-positive:hover .mute-check
{
    display: none;
}

/* CONTROLS */

.translate-buttons-block
{
    left: 100%;
    position: absolute;
    margin: 0 10px 0 20px;
}

.translate-buttons-block[dir="rtl"]
{
    left: auto;
    right: 102%;
}

.translate-buttons-block .btn
{
    margin-bottom: 0.5em;
    min-width: 110px;
}

.translate-buttons-block input.suggest
{
    display: none;
}

table.suggest-mode .translate-buttons-block input.suggest
{
    display: block;
}

table.suggest-mode .translate-buttons-block input.submit
{
    display: none;
}

.translate-fuzzy-block
{
    text-align: center;
    font-style: italic;
    white-space: nowrap;
}

.translate-fuzzy-block label
{
    vertical-align: middle;
}

input.fuzzycheck
{
    vertical-align: middle;
}

table.suggest-mode .translate-fuzzy-block
{
    display: none;
}

.switch-suggest-mode
{
    position: absolute;
    left: 120px;
    top: 0;
    padding: 5px 0;
    line-height: 150%;
}

.translate-full[dir="rtl"] .switch-suggest-mode
{
    left: auto;
    right: 120px;
}

.switch-suggest-mode .suggest
{
    display: none;
}

table.suggest-mode .switch-suggest-mode .suggest
{
    display: inherit;
}

table.suggest-mode .switch-suggest-mode .submit
{
    display: none;
}

.translate-toolbar
{
    position: absolute;
    top: -12px;

    /* LTR */
    right: 0;
}

.translate-toolbar a
{
    margin-left: 0.5em;
}


div.translation-text-headers[dir="rtl"] div.translate-toolbar
{
    right: auto;
    left: 0;
}

div.translation-text-headers[dir="rtl"] div.translate-toolbar a
{
    margin-left: 0;
    margin-right: 0.5em;
}

.translate-toolbar a,
.js-editor-copy-comment,
.js-editor-copytext,
.js-editor-copy-tm-text
{
    cursor: pointer;
}

.translate-container a
{
    text-decoration: none;
    white-space: nowrap;

    opacity: 0.8;
}

.translate-container a:hover
{
    opacity: 1;
    outline: none;
}

.editor-specialchars-block
{
    text-align: center;
    max-width: 40%;
    margin: 0 auto;
}

a.editor-specialchar
{
    padding: 0 0.2em;
    min-width: 1.3em;
    margin: 2px 0;
    display: inline-block;
}

a.editor-specialchar:hover
{
    background-color: #fff;
    text-decoration: none;
}

/* DIFF */

.diff-replace,
.diff-delete,
.diff-insert
{
    color: #130f30;
    background-color: #ffb;
    border: 1px dotted #999;
}

.diff-delete,
.diff-delete *
{
    color: #aaa !important;
    text-decoration: line-through;
}

/* DIFF FOR TM SERVER ENTRIES */

.tm-server .diff-replace,
.tm-server .diff-delete,
.tm-server .diff-insert
{
    color: #999;
    border: 1px dotted #d9d9d9;
    background-color: #f1f7f8; /* same as edit-row bg */
}

.tm-server .diff-delete,
.tm-server .diff-delete *
{
    color: #d9d9d9 !important;
    font-weight: normal;
}


/* HIGHLIGHT */

.highlight-escape
{
    color: purple;
}

.highlight-html
{
    color: #840;
}

.tm-server .suggestion-original .highlight-html
{
    color: #630;
}

a.editor-specialchar,
.highlight-punctuation
{
    border: 1px dotted #999;
    color: #666;
}

.highlight
{
    background-color: #fe6;
}

/* HIGHLIGHT SIMILAR MATCHES */

.best-match
{
    z-index: 100;
    box-shadow: 0 0 3px #6daa00;
    border: 1px solid transparent;
    transition: all 0.1s linear 0s;
}

.exact-match
{
    box-shadow: 0 0 6px #6daa00;
    background-color: #ebfacc;
}

/* FUZZY TRANSLATION */

div.translate-translation
{
    min-height: 1.5em;
}

div.translate-translation.raw textarea.translation
{
    direction: ltr;
    unicode-bidi: bidi-override;
    font-family: "Raw", Consolas, "Ubuntu Mono", "Lucida Console", monospace;
    font-feature-settings: "isol" off, "init" off, "medi" off, "fina" off;
    line-height: 115%;
}

/* Special handling for languages with big fonts */
td.translate-full div.translate-translation:lang(bn),
td.translate-full div.translate-translation:lang(fa),
td.translate-full div.translate-translation:lang(ja),
td.translate-full div.translate-translation:lang(ko),
td.translate-full div.translate-translation:lang(zh)
{
    margin-bottom: 35px;
}

tr.view-row .fuzzy-unit .translation-text
{
    color: #888;
    font-style: italic;
}

tr.edit-row.fuzzy-unit textarea.translation
{
    font-style: italic;
}

table.suggest-mode tr.edit-row.fuzzy-unit textarea.translation
{
    color: inherit;
    font-style: normal;
}


textarea.translation
{
    resize: none;
    font-size: 115%;
}

/* TERMINOLOGY MANAGEMENT */

td.translate-delete-terminology input
{
    display: block;
    margin: 0 auto;
}

.translate-term-original
{
    padding: 0 10px;
}

.translate-term-translation
{
    padding: 0 25px;
}

.left
{
    float: left;
}

.right
{
    float: right;
}


.js-auto-matched-translation textarea
{
    color: #aaa;
}

.auto-match-msg
{
    font-weight: bold;
    margin-bottom: 0.5em;
    font-style: italic;
}
